package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void deleteByPrimaryKey(Long id);

    void insert(Employee record, Long[] ids);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(Employee record, Long[] ids);

    //分页查询  返回 数据 封装在 pageResult对象 中
    PageInfo query(QueryObject qo);

    //登录
    Employee login(String username, String password);


    void updatePassword(String oldPassword, String newPassword);

    void resetPassword(String newPassword,Long id);

    void batchDelete(Long[] ids);

    Employee selectByName(String name);

    void importXls(MultipartFile file) throws IOException;


    //void importXls(MultipartFile file) throws IOException;
}
